package com.jmb.apiplatform.mapper;


import com.jmb.apiplatform.pojo.PermissionDao;
import com.jmb.apiplatform.pojo.PermissionTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PermissionMapper {
    void insertPermission(PermissionDao permissionDao);
    PermissionDao finPermissionCode(String permissionName);
    List<PermissionTO> findPermission(Integer parentId);

    void modifyPermission(PermissionDao permissionDao);
    List<PermissionDao> checkPermission(@Param("id") Integer id, @Param("permissionCode") String permissionCode);

    void removeById(Integer id);
    List<PermissionTO> findPermissionList(Integer permissionId);
    void deletePermissionRoleByPermissionId(Integer permissionId);
}
